package com.sensetime.bi.senselink.server;

import com.sensetime.bi.senselink.server.rtsp.server.RtspServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class RtspServiceMain implements CommandLineRunner {
    @Autowired
    private RtspServer RTSPServer;

    public static void main(String[] args) {
        SpringApplication.run(RtspServiceMain.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        new Thread(RTSPServer).start();
    }
}
